//1.基于http的, 让express作为请求处理的函数
/*
const http = require('http');
const express = require('express');

var app = express();
http.createServer(app).listen(3000);
*/

//2.直接使用express创建
const express = require('express');
var app = express();//创建express应用
var server = app.listen(3000,()=>{
  console.log('服务器已经启动成功....');
});







